class AddUpdateFreqToSources < ActiveRecord::Migration
  def self.up
    add_column :sources, :update_freq, :integer
    Source.all.each{|s| s.update_freq = s.default_update_freq; s.save(:validate => false)}
  end

  def self.down
    remove_column :sources, :update_freq
  end
end
